MPT.addObject('Tab', function() {

    //切换好友标签
    this.switchFriend = function() {
        var friend_nav_jQ = $('.e_friend_nav');

        var tab_name = window.location.hash.split('/')[2];
        if (!tab_name) tab_name = "friend";

        friend_nav_jQ.find('a').removeClass('active');
        $('.e_' + tab_name + '_tab').addClass('active');
    };

    this.switchNotice = function() {

    };

    this.switchProfile = function() {
        var friend_nav_jQ = $('.e_profile_nav');

        var tab_name = window.location.hash.split('/')[2];
        if (!tab_name) tab_name = "profile";

        friend_nav_jQ.find('a').removeClass('active');
        $('.e_' + tab_name + '_tab').addClass('active');
    };
});